package com.codeoss.framework.view.service.impl;

import org.springframework.stereotype.Service;

import com.codeoss.framework.context.YunContext;
import com.codeoss.framework.expression.Expression;
import com.codeoss.framework.view.component.Component;
import com.codeoss.framework.view.component.mobile.MNavBar;

@Service("mnavbarComponentService")
public class MNavBarComponentService extends ComponentService {
	@Override
	public void processEvent(YunContext yunContext, Component component, String eventType) {
		// TODO Auto-generated method stub
		MNavBar mNavBar=(MNavBar)component;
		if ("leftArrowClickEvent".equals(eventType)) {
			Expression leftArrowClickExpression=mNavBar.getLeftArrowClickExpression();
			if(leftArrowClickExpression!=null) {
				executeEventExpression(yunContext, component, leftArrowClickExpression, null);
			}
		}
	}
}
